<!-- eslint-disable vue/multi-word-component-names -->
<!-- // eslint-disable-next-line vue/multi-word-component-names -->
<template>
	<div id="app">
		<button @click="playAudio">播放音频</button>
	</div>
</template>

<script>
export default {
	data() {
		return {
			audioUrl: "https://example.com/audio.mp3", // 替换为你的音频文件 URL
		};
	},
	methods: {
		playAudio() {
			const audio = new Audio(this.audioUrl);
			audio.play();
		},
	},
};
</script>
